stackswitcher: Set accessible label properties
authorMatthias Clasen <mclasen@redhat.com>
Tue, 20 Apr 2021 02:11:55 +0000 (22:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Apr 2021 02:11:55 +0000 (22:11 -0400)
This makes the tabs in about dialogs come out as
'About', 'Credits', and 'System', instead of
'Tab', 'Tab', 'Tab'.

gtk/gtkstackswitcher.c

index e0896a74f0814c5c8d1ac10299ea588a25808c95..7ce0efb10974c771038403f2d2a7e38dd053f0da 100644 (file)
@@ -154,6 +154,10 @@ rebuild_child (GtkWidget   *self,
       gtk_widget_set_halign (GTK_WIDGET (button_child), GTK_ALIGN_CENTER);
       gtk_button_set_child (GTK_BUTTON (self), button_child);
     }
+
+  gtk_accessible_update_property (GTK_ACCESSIBLE (self),
+                                  GTK_ACCESSIBLE_PROPERTY_LABEL, title,
+                                  -1);
 }
 
 static void